package com.alibaba.algo.cooperation.feign.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;


/**
 * @author : WangZhiPan
 * @date : 2021/11/17 10:25
 */
@Data
@ApiModel("获取岗位详细信息")
public class GetPositionDetailVo {
    @ApiModelProperty("岗位id")
    private Long id;

    @ApiModelProperty("岗位编码")
    private String posCode;

    @ApiModelProperty(value="全量/有效数据标识", notes = "空字符串或Null获取全量数据，N-只获取有效数据")
    private String isDeleted;

    public boolean empty() {
        return (id == null && StringUtils.isEmpty(posCode));
    }
}
